<template>
  <div>
    这里是详情
    <div>从路由上取下来的query是：{{ query }}</div>
    <div>从路由上取下来的params是 {{ params }}</div>
  </div>
</template>
<script setup>
import { useRoute } from "vue-router";

const route = useRoute();
const query = route.query;
const params = route.params;
const getData = () => {
  const id = route.query.id;
  console.log("调用后端接口", id);
};
document.title = route.meta.title;
</script>
<style></style>
